<?php

  require_once "JooS/Event.php";

  /**
   * Событие возникает когда после успешной апгрейда уже установленного ранее пакета
   * возникает в JooS_PHPackager_Manager::install
   *
   * @property JooS_PHPackager_Instance $NEW_package
   * @property JooS_PHPackager_Instance $OLD_package
   */
  final class JooS_Event_Phpackager_Package_Upgraded extends JooS_Event {
    /**
     * @param JooS_PHPackager_Instance $NEW_package
     * @return JooS_Event_Phpackager_Package_Upgraded
     */
    public function setNEW_package(JooS_PHPackager_Instance $NEW_package) {
      $this->NEW_package = $NEW_package;
      return $this;
    }

    /**
     * @param JooS_PHPackager_Instance $OLD_package
     * @return JooS_Event_Phpackager_Package_Upgraded
     */
    public function setOLD_package(JooS_PHPackager_Instance $OLD_package) {
      $this->OLD_package = $OLD_package;
      return $this;
    }

    /**
     * @return JooS_Event_Phpackager_Package_Upgraded
     */
    public static function getInstance() {
      return self::_getInstance(__CLASS__);
    }
  }
